#ifndef PROJECT_TREE_DOCK_H
#define PROJECT_TREE_DOCK_H

#include <QDockWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>

#include "hc_tree_view_model.h"
#include "hc_tree_widget.h"

class ProjectTreeDock : public QWidget {
 public:
  ProjectTreeDock(QWidget *parent);
  void Init();

 private:
  void InitTop(QVBoxLayout *mainVbox);
  void InitTreeWidget(QVBoxLayout *mainVbox);

  QWidget *widget_{nullptr};
  QLineEdit *lineEdit_{nullptr};
  QPushButton *searchButton_{nullptr};

  // tree
  ProjectTree *tree_{nullptr};
  TreeModel *treeModel_{nullptr};
};

#endif  // PROJECT_TREE_DOCK_H
